<?php $this->extend('template');?>

<?php $this->start('titre_page'); ?>
	<?php echo __('List of continents'); ?>
<?php $this->end(); ?>

<?php $this->start('titre'); ?>
	<h1><?php echo __('List of continents'); ?></h1>
<?php $this->end(); ?>

<div class="continents index">
	
	<?php foreach ($continents as $continent): ?>
		<h2>
			<?= $this->Html->link($continent['Continent']['name'], array(
				'controller' 	=> 'continents',
				'action' 		=> 'view',
				 $continent['Continent']['idcontinents'])); ?>
		</h2>

		<td class="actions">
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $continent['Continent']['idcontinents'])); ?>
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $continent['Continent']['idcontinents'])); ?>
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $continent['Continent']['idcontinents']), null, __('Are you sure you want to delete # %s?', $continent['Continent']['idcontinents'])); ?>
		</td>

		
	<?php endforeach; ?>

	</br></br>
	<?php
		//Création de la pagination:
		echo $this->Paginator->prev(__('Previous countries'));
		echo ' ';
		echo $this->Paginator->numbers();
		echo ' ';
		echo $this->Paginator->next(__('Next countries'));
	?>
</div>

